<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if IE 9 ]><html class="ie9"><![endif]-->
    <head>
        <title>yuejian - 14</title>
        <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<script>
        function check(){
            var password = document.getElementById("password").value;
            var repsword = document.getElementById("newpassword").value;
        if(password == ''||repsword==''){
        alert('密码不能为空');
            return false;
        }
        if(password != repsword) {
        alert("两次密码不同，请重新输入");
            return false;
        }
       return true;
        }
        function checkTele(){
          //创建XHR对象
var xmlHttp;
try{    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();    
   }
catch(e){   // Internet Explorer
   try{
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }catch (e){
    try{
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e){
         alert("您的浏览器不支持AJAX！");
         return false;
         }      }    } 
//第二部
         xmlHttp.onreadystatechange=function() {
          if(xmlHttp.readyState==4 && xmlHttp.status==200){
            document .getElementById("tip").innerHTML=xmlHttp.responseText;
          }
          }
         //获取电话号码
         var t=document.getElementById("telephone").value; 
         //第三步
         xmlHttp.open("get","checkTele?tt="+t);
         //发送请求
         xmlHttp.send();
}
function checkAlias(){
document.getElementById("tip2").innerHTML="";//将以前的字符串清除



           var xmlHttp;
try{    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();    
   }
catch(e){   // Internet Explorer
   try{
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }catch (e){
    try{
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e){
         alert("您的浏览器不支持AJAX！");
         return false;
         }      }    } 


           xmlHttp.onreadystatechange=function() {
          if(xmlHttp.readyState==4 && xmlHttp.status==200){
            var info=eval(xmlHttp.responseText);
            for(i=0;i<info.length;i++){
              document.getElementById("tip2").innerHTML+=info[i].aliasname+"&nbsp;&nbsp";
            }
            
          }
          }

          var alias=document.getElementById("aliasname").value; 
         //第三步
         xmlHttp.open("get","checkAlias?as="+alias);
         //发送请求
         xmlHttp.send();
        }
function checkAlias2(){
  var alias=document.getElementById("aliasname").value;
  $.getJSON("checkAlias",{as:alias},function(info){
  for(i=0;i<info.length;i++){
              document.getElementById("tip2").innerHTML+=info[i].aliasname+"&nbsp;&nbsp";
            }
          });

 

}
</script>

     <head><meta charset="utf-8">
    
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
        <meta name="format-detection" content="telephone=no">
        <meta charset="UTF-8">

        <meta name="description" content="Violate Responsive Admin Template">
        <meta name="keywords" content="Super Admin, Admin, Template, Bootstrap">
<!-- CSS -->
        <link href="/yuejian14/Public/Admin/css/bootstrap.min.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/animate.min.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/font-awesome.min.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/form.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/calendar.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/media-player.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/style.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/icons.css" rel="stylesheet">
        <link href="/yuejian14/Public/Admin/css/generics.css" rel="stylesheet"> 
    </head>

    </head>
    <body id="skin-blur-violate">
        <section id="login">
            <header>
                <h1>SUPER ADMIN</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eu risus. Curabitur commodo lorem fringilla enim feugiat commodo sed ac lacus.</p>
            </header>
        
            <div class="clearfix"></div>
            
            <!-- Login -->
            <form class="box tile animated active" id="box-login">
                <h2 class="m-t-0 m-b-15">Register</h2>
                 <input class="login-control m-b-10" placeholder="用户名(必填)" type="text" id="aliasname" name="aliasname" required pattern="[0-9a-zA-Z_]{6,12}"
                      onblur="checkAlias()">
                      <span id="tip2"></span>



                <input class="login-control m-b-10" placeholder="密码(必填)" type="password" id="password" name="password" required>



                 <input class="login-control m-b-10" placeholder="确认密码(必填)" type="password" id="newpassword" name="newpassword" required 
                      >

            <input class="login-control m-b-10" placeholder="手机号(必填)" type="text" id="telephone" name="telephone" required pattern="[0-9]{11}" title="请填写正确的手机号"onblur="checkTele()">
                    <span id="tip"></span>  
             


                 

                <button class="btn btn-sm m-r-5">Register</button>

                <small><a class="box-switcher" data-switch="box-login" href="">Already have an Account?</a></small>
            </form>
            
            <!-- Register -->
            <form class="box animated tile" id="box-register">
                <h2 class="m-t-0 m-b-15">Register</h2>
                <input type="text" class="login-control m-b-10" placeholder="Full Name">
                <input type="text" class="login-control m-b-10" placeholder="Username">
                <input type="email" class="login-control m-b-10" placeholder="Email Address">    
                <input type="password" class="login-control m-b-10" placeholder="Password">
                <input type="password" class="login-control m-b-20" placeholder="Confirm Password">

                <button class="btn btn-sm m-r-5">Register</button>

                <small><a class="box-switcher" data-switch="box-login" href="">Already have an Account?</a></small>
            </form>
            
            
        </section>                      
        
        <!-- Javascript Libraries -->
        <!-- jQuery -->
        <script src="/yuejian14/Public/Admin/js/jquery.min.js"></script> <!-- jQuery Library -->
        
        <!-- Bootstrap -->
        <script src="/yuejian14/Public/Admin/js/bootstrap.min.js"></script>
        
        <!--  Form Related -->
        <script src="/yuejian14/Public/Admin/js/icheck.js"></script> <!-- Custom Checkbox + Radio -->
        
        <!-- All JS functions -->
        <script src="/yuejian14/Public/Admin/js/functions.js"></script>
    </body>
</html>